package com.mygame;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;

public class Blade extends Straight {
	
	Paint paint;
	
	public Blade(Paint p) {
		paint=p;
	}
	
	public void draw(Canvas c) {
		c.drawLine(x1, y1, x2, y2, paint);
	}
	
	public void equap(float x, float y, float k) {
		b=1;
		a=1/k2;
		c=-y-1/k*(x);
		
	
	}
	
	public void setP(float x, float y) {
		x1=x;
		y1=y;
		x2=x1+10;
		y2=(-a*x2-c)/b;
	}
	
	
	
	
}